#pragma once
#ifndef _BULLET_OBJECT_H_
#define _BULLET_OBJECT_H_
#include "BaseObject.h"
#include "BulletBody.h"
class BulletObject :
	public BaseObject
{
public:
	BulletObject(b2World *_World);
	~BulletObject();
	boolean mCanFight = false;
	std::vector<b2Joint*> mListJoint;

	virtual void init(SpriteBatchNode* _Spritebatch, SpriteFrameCache* _Cache);

	virtual void update(float dt);

	virtual void draw();

	virtual void destroy();

	virtual void onCollisionWith(BaseObject *_Object);

	CallFunc *moveToCenterCallBack(BaseObject *_Object);

	CallFunc *rotateSameCallBack(BaseObject *_Object);

	CallFunc *moveToFightCallBack(BaseObject *_Object);

};
#endif _BULLET_OBJECT_H_

